package com.qf.qflivehou.controller;
import com.qf.qflivehou.pojo.respVo.ResponseData;
import com.qf.qflivehou.pojo.vo.QfComment;
import com.qf.qflivehou.service.QfCommentService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (QfComment)表控制层
 *
 * @author makejava
 * @since 2022-01-11 20:40:29
 */

/**
 * 评论接口处理
 */
@RestController
@RequestMapping("/qfComment")
public class QfCommentController {
    /**
     * 服务对象
     */
    @Resource
    private QfCommentService qfCommentService;

    /**
     * 通过课程id查询课程评论
     * @param id
     * @param page
     * @param size
     * @return
     */
    @RequestMapping("/findCourseCommentByCourseId/{id}/{page}/{size}")
    public ResponseData findCourseCommentByCourseId(@PathVariable("id")Integer id,@PathVariable("page")Integer page,@PathVariable("size")Integer size){
        ResponseData responseData = qfCommentService.findCourseCommentByCourseId(id,page,size);
        return responseData;
    }

}